#ifndef CLI_HANDLER_H
#define CLI_HANDLER_H
#include "pwzd.h"


int setup_unixfd();

void read_unixfd(int unixfd);

/**
 * Reads recieved CLI command and sends appropriate response in return.
 * 
 * \param cmd     command datagram
 * \param cmd_len command datagram length
 */
void handle_cmd(char * cmd, size_t cmd_len);

void handle_delete(char * interest_name);

void handle_add(char * interest_name);

void handle_info(char * interest);

void handle_query(char * address);

void handle_list();

void handle_quit();


#endif // CLI_HANDLER_H
